package com.dong.ioc.annotation;

import org.springframework.core.Ordered;

import javax.annotation.Priority;

/**
 * description
 *
 * @author Administrator 2021/08/31 14:36
 */
@Priority(-1)
public class Account implements Ordered {

    private String name;
    private String password;
    private Integer order;

    public Account(Integer order) {
        this.order = order;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "Account{" +
                "name='" + name + '\'' +
                ", password='" + password + '\'' +
                ", order=" + order +
                '}';
    }

    @Override
    public int getOrder() {
        return this.order;
    }
}
